//
//  DDGlobalDefine.m
//  DingDongZP
//
//  Created by 三秒文化 on 2016/10/26.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//


//**********调试模式，开启后debug模式。
//#define __DEBUG//com.51ledian.KuaiZhao-iOS

#ifdef __DEBUG

//自定义登录
#define		AUTO_LOGIN
//自定义打印
#define		DD_LOG

//切换app
#define APPNAME_KUAI_PIN
//#define APPNAMEKUAI_KUAI_ZHAO

//测试时屏蔽注册激活宏
#define         NOACTIVE

#endif
//相关配置
//打印调试的日志
#ifdef DD_LOG

#define DDLog(FORMAT, ...) fprintf(stderr,"%s LineNum:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#define NSLog(FORMAT, ...) fprintf(stderr,"%s LineNum:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else

#define DDLog(format, ...) {}
#define NSlog(format, ...) {}

#endif


// block self
#define WEAKSELF typeof(self) __weak weakSelf = self;
#define STRONGSELF typeof(weakSelf) __strong strongSelf = weakSelf;
#define WS(weakSelf) __weak __typeof(&*self) weakSelf = self

//----------------------

#ifdef AUTO_LOGIN

#define     LOGIN_ACCOUNT @"13083663880"
#define     LOGIN_PASSWORD @"$2y$10$BZNMFs7b7u1KZJffHHY2HeDwbggbidLedYOuSyNgN4Qsdrp8SSJb6"

#endif


//debug
#ifdef DEBUG

#define kAppType                    kAppTypeOfTest//kAppTypeOfDeveloper
#define kNetServerType              kLinkServerTypeOfTest //连接服务器的类型


#else

#define kNetServerType              kLinkServerTypeOfNormal
#define kAppType                    kAppTypeOfNormal

#define NSLog(...){}
#define DDLog(...){}

#endif
